package 抽象工厂模式;

public class main {
    public static void main(String[] args) {
        MaxFactory shapeFactory =FactoryProducer.getFactory(ShapeFactory.class);
        MaxFactory colorFactory =FactoryProducer.getFactory(ColorFactory.class);
        shapeFactory.getShape(Square.class).draw();
        colorFactory.getColor(Green.class).fill();
    }
}
